#ifndef _RECTANGLE_ENTITY_H_
#define _RECTANGLE_ENTITY_H_

#include "engine.h"
#include "opengl/opengl_buffer.h"
#include "entity/entity.h"

namespace engine
{
    class PointEntity : public Entity
    {
    public:
        PointEntity(float x, float y)
        {
            this->primitiveType = GL_POINTS;
            float vertices[] = {x, y, 0};
            this->vertexArray->addVertexBuffer(new VertexBuffer(vertices, sizeof(vertices)), 0, 3);
        }
        virtual ~PointEntity() {}

        void drawVertex()
        {
            vertexArray->bind();
            glDrawArrays(this->primitiveType, 0, 1);
        }

    private:
    };
}
#endif